package personal.wang.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import personal.wang.inter.ExecuteMethod;
import personal.wang.manager.RecordGeneratorManager;
import personal.wang.manager.WorkerManager;

/**
 * @className: CommandService
 * @Description:
 * @Author: wangyifei
 * @Date: 2025/2/24 16:23
 */
public class CommandService {
    private static Logger logger = LoggerFactory.getLogger(CommandService.class);
    public WorkerManager workerManager ;
    public RecordGeneratorManager recordGeneratorManager ;
    @ExecuteMethod(tag = "task-info")
    public String getTasksInfo(){
        return recordGeneratorManager.getTaskInfo();
    }
    @ExecuteMethod(tag = "worker-info")
    public String getWorkersInfo(){
        return workerManager.getWorkInfo();
    }

    public void setWorkerManager(WorkerManager workerManager) {
        this.workerManager = workerManager;
    }

    public WorkerManager getWorkerManager() {
        return workerManager;
    }

    public void setRecordGeneratorManager(RecordGeneratorManager recordGeneratorManager) {
        this.recordGeneratorManager = recordGeneratorManager;
    }

    public RecordGeneratorManager getRecordGeneratorManager() {
        return recordGeneratorManager;
    }
}
